package com.jingdianjichi.auth.domin.convert;


import com.jingdianjichi.auth.domin.entity.AuthUserBO;
import com.jingdianjichi.auth.infra.baisc.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface AuthUserBOConverter {


    AuthUserBOConverter INSTANCE = Mappers.getMapper(AuthUserBOConverter.class);

    AuthUser convertBOToEntity(AuthUserBO authUserBO);

    AuthUserBO convertEntityToBO(AuthUser authUser);


    List<AuthUserBO> convertEntityListToBOList(List<AuthUser> authUserList);

    List<AuthUser> convertBOListToEntityList(List<AuthUserBO> authUserBOList);
}